# 关闭集群
for file in `ls ./release`
do
    if [ $file ]; then
        echo "STOP ==> ./release/"$file
        cd ./release/$file/bin && ./stop.sh full && cd - > /dev/null
    fi
done

# 停止并删除msyql容器
docker stop $(docker ps -q -f name=VM-GO)
docker rm $(docker ps -aq -f name=VM-GO)
docker stop mysql_node_1
docker stop mysql_node_2
docker stop mysql_node_3
docker stop mysql_node_4
docker rm mysql_node_1
docker rm mysql_node_2
docker rm mysql_node_3
docker rm mysql_node_4
rm -rf ./mysql/data1/*
rm -rf ./mysql/data2/*
rm -rf ./mysql/data3/*
rm -rf ./mysql/data4/*
rm -rf ./release
